//
//  JZHACTview.m
//  极致荟
//
//  Created by hetao on 14-7-24.
//  Copyright (c) 2014年 mac. All rights reserved.
//

#import "JZHACTview.h"

@implementation JZHACTview
UIViewController *acontroller;

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

+ (id)defut
{
    static JZHACTview *jzh;
    if(!jzh)
    {
        jzh=[[NSBundle mainBundle] loadNibNamed:@"JZHACTview" owner:self options:nil][0];
    }
    return jzh;
}
- (IBAction)goumai:(id)sender
{
    if(self.ok)
    {
        self.ok();
    }
    [UIView animateWithDuration:0.3 animations:^{
        [self removeFromSuperview];
    }];

}

- (IBAction)quxiao:(id)sender
{
    if(self.clos)
    {
        self.clos();
    }
    [UIView animateWithDuration:0.3 animations:^{
          [self removeFromSuperview];
    }];
  
}

- (void)showViewtitle:(NSString *)text
{
    self.labletilet.text=text;
    [UIView animateWithDuration:0.3 animations:^{
         [[UIApplication sharedApplication].windows[0] addSubview:self];
    }];
   
}

@end
